import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import { ErrorComponent } from './error/error.component';


import {AppComponent} from './app.component';
import {HomeComponent} from './home/home.component';
import {ProductDetailComponent} from './product-detail/product-detail.component';
import {AppRouting} from './app.routing';
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
import { ProductParamComponent } from './product-param/product-param.component';

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    ProductDetailComponent,
    ErrorComponent,
    ProductParamComponent
  ],
  imports: [
    BrowserModule, AppRouting
  ],
  providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],
  bootstrap: [AppComponent]
})
export class AppModule {
}
